const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  // transpileDependencies: false
  lintOnSave: false,
  publicPath: "./", //  解决白屏问题
  devServer: {
    port: 8080, //  自定义端口号
    open: true, //  npm  run  serve  自动打开浏览器
    //proxy: 'https://ronyun.com',//代理地址
    proxy:{
      '/abc': {    //1
        target: 'https://ronyun.com',    //2
        changOrigin: true,
        pathRewrite: {    //3
            '^/abc': ''
        }
    }
    }
  },
})
